Change hardcoded events names by its constant.
Merge pull request #5714