Cleanup the `Module::renderNavigation()` method (see #6624)