Initial attempt to refactor ttReportHelper::getSubtotals to use multiple group by.