Trivia plugin: refactor Trivia object