Part of #118145. Use vertex indices instead of `PBVHVertRef`. This doesn't lose functionality because color attribute painting is only supported for base meshes anyway. The next steps are refactoring the code to have the same structure as the new brushes and using the same methods to add code paths for the other data structures.