menu_common.c - Refactor defer_menu_core