(menu_common_backend.c) Cut down on code duplication