I don't work HS but I know there are "safety rule" pertaining to removal of the helmet while in the field of play while the ball is still live. 1.1.5 something..
I know it's a violation, but thought it was 1) a team warning and 2) second offense an ejection.