Revert the middle type of Aggregator as an abstract type