Remove some lineage in write_docs