Cleanups in menu_common_backend.c