I have to echo Capt'nKarls advice, definitely label everything. A couple of pics of the battery terminals before disconnecting the wires is helpful.
Having just replaced the OEM (2010 vintage) Group 31 AGM batteries with new Group 27 AGM batteries on my 2011 R27, I shortened a couple of cables, cleaned up some of the cable routing and replaced a lot of old sticky/gooey electrical tape with new heat shrink and lightened the load in the battery compartment. The port list on my boat is now less pronounced. The notional weight difference is probably about 40 pounds. Of course, humping eight 60/70 pound batteries up and down the dock was a fun event.