refactoring: extract document_builder, extract paragraph