Remove branch leaf class in one call