Remove all uses of managed boxes.