Refactored Document.