Why not:
```scala
Producer.dependenciesOf(dependantProducer).foldLeft(innerDag) { {dag, dep) => dag.connect(dep, dependantProducer) }
```
Would that work and save some code duplication with dependenciesOf?