Register factory via event.