Refactor: extract repeated code to a function
Refactor: extract repeated code to a function

Why:
Code to define parsing step are similar among
all the parser function, hence it can be abstracted
as a higher order function to build a parser function

This change addresses the need by:
Create a curried `buildParserFunction` function to abstract
the creation of a parser function.

tripvisto/bookshelf-jsonapi-query