Simplify enforce function