Main module service factory as a class