refactoring knp sexp pipe parser