(Menu) Refactor menu_parse_and_resolve