Effects of refactoring legacy protocol implementations: a case study | IEEE Conference Publication | IEEE Xplore