Refactor Rating and Recommendation controllers.