Transforms the "max" variables to constants.