A framework for aggregation theories