module.factory() moving to code block