The paint, sculpt, and vertex-paint modes already have separate context menu classes from GPv2. The GPv2 classes will be removed, this is just a small refactor to prevent this change from getting lost in a big cleanup PR. No functional changes. Pull Request: https://projects.blender.org/blender/blender/pulls/128530