Major refactoring of EvaluationPrinter and DocumentExtractor.