Convert document_type to use closure_tree