I got about 18 months out of 4Ds doing similar to what you just did.
I went with the 6V Golf Carts. You can't really fit 4 6 volts and a Group 24 with correct orientation where the two 4Ds are. I had to remove the fiberglass battery tray and put the batteries in individual boxes. I could only get 3 of the 5 in the correct orientation so I put the other 2 as close to the center line of the boat as possible.
I think I would consider going with 12 volt golf carts if I did this again. My friend, Andrew, also owns and lives on his C310. We were at Sam's Club 2 weeks ago to look at batteries for his upgrade. He currently has two Group 31, IIRC, having ditched the 4Ds a while ago. The
12V golf cart batteries at Sam's Club also appear to be made by Dekka. I haven't called to confirm yet but visually they look to be the same. I would also want to confirm that these also have the thicker lead plates like the 6Vs. If these are a viable alternative you can get 465 Ah out of 3 in parallel but save about 20 square inches of space. I think you could get them all in a better orientation as well. But they are about an inch taller. So that might be an issue with fitting 3 as the hull curve shortens the height as you get closer to it.
Even 2 of the 12V CG would give you 310 Ah of actual deep cycle (if the research above pans out) which would be an upgrade from the 4Ds and take up less space. You could fit the 2 plus a Group 24 as a reserve bank in the same area as the 2 4Ds. No need to have a battery under the nav station. That would be plenty of battery for your typical use.
Just something else to consider and research.
Good luck and fair winds,
Jesse