Learn was generating the dependency graph twice