(Menu) Split up reusable menu_action code to menu_action.c