refactoring trivia