Improve version reuse in GDAL Framework

Closes #6330.