[BC BREAK] Rename `registerFactory` to `registerDefinition`
v0.4.0