Refactor protocol setting for analyzer widget.