Refactor menu_item.rb initializer