(Menu) Refactor code to use menu_flush_stack_type