Wrap as module to prevent global leak of factory