Set `define` to `undefined` inside factory function so UMD wrappers won't detect it.