Refactor string names into constants when publishing events.

Categories: