PIM-2919 : use metric class parameter in MetricType to avoid direct
instanciation