Fix legacy metric processing.