backend: move rated submit code to its own file