Switch MetricsMiddleware over to new-style metric manager.