Remove panel-specific parts.