[client][util] Simplify formatMetricPrefix()