This deletes ref_wellbore as this duplicates wellbore.kind.
CHANGE ERP2_ref_wellbore DROP ENTITY ref_wellbore; ALTER ENTITY wellbore; DROP ref_wellbore; END_ENTITY; END_CHANGE;