Refactoring of visualizers