Refactor Rating and Recommendation models.