Refactoring the combined graph.