moving the building of search terms to its own method
moving the params encoding to its own method
separating out the id param building into its own method for EFetch