GDMS: Refactor getCharAlleleValuesForPolymorphicMarkersRetrieval and  getMappingAlleleValuesForPolymorphicMarkersRetrieval

Issues: GCP-9272, GCP-9275