Backporting TRUNK-3851 - Modules should be able to define message codes outside of their module's namespace