ref #7597 Refactor aggregation method + add taxon aggregation method