Refactor: change the roles in aggregation.