[AKQAKIEV-41] Added handling network type settings. Code refactoring.