Add "validateAndExtractSeg'"  which operates on maps
Refactor 'validateAndExtract' into 'extractXYZ' functions