Metric to AbstractMetric and MetricValue to AbstractMetricValue