Refactor the method that get a rating of member