Cleanup code in menu_common_backend.c