Refactoring: Simplified construction of network topology