Split pg-upgrade logic to individual methods
Towards #3308 (closed).
Depending on different type of nodes (single instance, primary in a PG HA cluster, secondary in a PG HA cluster, primary in a Geo setup, secondary in a Geo setup, etc.), we need to run many of these jobs. If they are made to individual methods, we can make them pretty much DRY.