Cosmetic refactor in visualizations controller