Part of #118145. Remove the iterator macro and the "sculpt mask write" abstraction. A few mask utilities have been added/moved to the common mask code. They'll be useful in a couple more places including the mask filter. TODO: Still needs to be tested Pull Request: https://projects.blender.org/blender/blender/pulls/124131