Refactoring rating star