Make helper function for vis generation in main

Reduce code duplication where we have every visualization being
generated with a call which is identical except for the particular
Visualizer which is being passed in.