Refactored MetricCollectorDetails factory.