Put rating utils in their own file