We present an approach to maintaining consistency between code and specication consistent during refactoring, where the specication consists of several diagrams from dierent UML diagram families. Distributed graph transformations are applied in a coordinated way over the dierent diagrams. Refactoring itself is modelled as a graph transformation over a owgraph representing the code, while the UML diagrams are taken to represent dierent views of the code.