(cleanup) move shouldPrepare func to being a Query type method

Moved the function shouldPrepare to be a Query type Method.