Smaller SUM aggregation form MetricConfiguration factory by using traits