Refactor rating