Part of #118145. The `flood_fill` functions are used for a number of different remaining brushes and tools. It is unlikely that this particular implementation is the most efficient way to solve the problems that the different brushes pose, but further refactors to improve performance should happen in future commits. For now this is a temporary solution to remove usage of `PBVHVertRef` and related macros. Pull Request: https://projects.blender.org/blender/blender/pulls/124830