Move createFactory call to loadComponent function.
0.2.4