Refactor name of event handling frequency code