Handle duplication of entities.