#728 Issue fix - replace hardcoded event names with php constants.

Refactored the services.

| Q             | A
| ------------- | ---
| Fixed tickets | #728
| License       | MIT