refactor by taking out some logic to own file
remove extra var statement
remove extra var
simplify JSONpath
simplify JSONPath further
simplify use of oboe
refactor building the response to search queries in MW