Moved setting of the context info panel visibility to the representing class.