Reduce code duplication between graql query steps in BDD (#5814)
Reduce code duplication between graql query steps in BDD (#5814)

To reduce code duplication between graql query steps in BDD.

We took the steps "graql define", "graql insert", "graql delete" etc. and refactored them, extracting a common method named "graql query". We repeated this process for "graql define without commit", and "graql define throws", and for the other query types.

lolski/grakn,lolski/grakn,graknlabs/grakn,graknlabs/grakn,graknlabs/grakn,lolski/grakn,lolski/grakn,graknlabs/grakn