Removing extra import
Document inheritance
Move DocType metadata into _meta attribute, including mapping