wma: Move computation of high band values to a separate function.