Moved some common code from all visualizations' *Panel classes into common superclass