Refactoring menus with char arrays