refactoring app/controllers/admin/laws_controller.rb