Cleanup of menu-bar-mode configuration

There is no need for this function to be interactive.