Refactor Recommendation controller.