Move supporting functions out of Quiz.QuizView