Keep each function's declaration in the header file associated with its module. Arguably mode switching should be more organized, but for now it's better to just declare functions in more predictable places.
See #103343 Pull Request: https://projects.blender.org/blender/blender/pulls/110820