Refactor MetricFu::Templates::MetricsTemplate#write into a composed method.
Merge pull request #237 from botandrose/refactor_metrics_template

refactor: MetricFu::Templates::MetricsTemplate#write into a composed method.