Network configuration refactoring