Update derived_to and derived_from