This won't work since the return value of `factory()` is a `Promise`, a function.