Refactors creation of Module in ParamBuilder class