Replace event name with constant