Dehardcode some code in menu_common_type_is