Refactoring scoped vars
Removed optional/requrired consideration for query_params
Looking up request elements from scoped tree
Removed :spec since is equivalent to first scope level in tree
Reviewing analysis transformations