readme: Add documentation about registerFactory