How to conditionally remove a "Set Mask"