Except those function calls are not only happening for the specific events. Should lower the cyclomatic complexity too.