Simplify the positioning of masks.