Move setVizTypes to control statement