Move declaration of static MenuItems into the constructor of MainMenu.