Split metric_handler out into classes in separate files.