Use MetricWriter directly in BatchMetrics