Refactored AggregateOperations.