[PLAT-4898] Self-register metrics and remove MetricProducer interfaces.