Simplify the minimum and maximum validators.