Simplify reduce aggregator
Rename extractKey to keyBy