Refactor app/controllers/concerns/sortable.rb