We left some unused code when removing deprecated fields from `getpeerinfo`
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/20755 | core#20755]]
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/20791 | core#20791]]