Refactoring system diagram