EDSC-615 refactored code
EDSC-615 refactored code

bilts/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search