Extract class for event elements