refactor: migrate upgrades to {In,Out}boundConnectionUpgrade
#4695
+213
−116
{In,Out}boundConnectionUpgrade
#4695