Factored out AggregationIter from SpanGroup to its own file.