Revert "Refactor MenuItem#set_submenu_from_params"

This reverts commit ce89a2fafc639fde532d00099c4119582e6b54b0.