QualityMetric replaced by AbstractQualityMetric