Refactoring SocketTransport service.