Refactored SnapshotAggregator to use method injection