Change public api for creating an event hub.