Refactor methods in the `rating_set` model.