Refactor "completedQuestionGroups".