Refactored the ListOfTermsGetter