Put building of main menu into separate class