Refactoring. DocumentMetadata, CorpusAnnotation.