Added ability to create module in loading-state where its factory is assigned later.