Fix problem with deleting objects and delete logic moved to DeletableEntityRepository