Hierarchize document type model