Make register_factory
a user facing API
#4854
Merged
register_factory
a user facing API
#4854