revert class lineage in type factory