Encapsulate visualization groups management in separate class