Prevent double-counting of entities.