Fix PY-14096 Minor Refactor output panel creation