Using provided function to remove entities from CD.