[tor-commits] [metrics-tasks/master] Unify code for grouped and non-grouped results (#6329).