The GroupBy + having isn't used currently in the code but was not clean. It removes unused arguments and variables and adds a test based on a DAO to show a full example on how to use it. Signed-off-by: Marc-Aurèle Brothier <m@brothier.org>