Refactor some controllers to use before_action