Move more Doctrine related container settings in the appropriate CompilerPass.