Move rating stuff to its own module