Refactored event_generator to return title and subtitle separately.