Refactored events and added exerciseCreatedEvent logic