Detrainment in deep convection