Move persist code out of getBase and into getBaseToFilesys