Use constants of corresponding events classes rather than making assumption about string values.