Changed way how to load module factories