Changed factory to inject the collection of outputs, instead of the kernel.