refactor trivia commands using the namespace like functionality