Decouple core/plugins.js from menubar.