Remove a flag from the given shape and all of its nested shapes.
A selector shape.
The flag to remove.
The shape without the flag, which is the given shape if it has none.
Remove a flag from the given shape and all of its nested shapes.