I wrote a wrapper for the OpenSSH client to downgrade the sent TERM strings for IPv4/IPv6 hostnames or hostnames matching a set of patterns, which network gear CLIs are more likely to accommodate.
Newer OpenSSH can send a TERM string per-host with ssh_config(5) files, but I wanted something that adapted to the outer terminal: tmux-256color→screen, xterm256-color→xterm, etc.
This came up because newer versions of tmux set their own TERM type now by default.