Move menu_flush_stack_type to menu_entries.c