Use AbstractMetric instead of Metric where possible