Simplify dependency graph.