Get debris entity class before entity deletion to be on the safe side.