Sorted metrics

get rid of the static block by creating a static method and initializing the variable by calling the method:
  metricCalculatorMap = createMetricCalculatorMapMap()

private static Map<String, Function<List<AbstractMetric>, Metric<?>>> createMetricCalculatorMapMap() {
 // content of the static block here
}