Code deduplication: make function in GUIUtil to get connection type to call object...