Refactoring in Networlk classes used state pattern