Created another class to set up ItemLocationQuery. Moved logic of generating url to ItemLocationQuery.