This commit completes the abstraction over dependency kinds in the incremental compiler, started with #1340.