Refactoring the SQLQueryComposer so that it will be easier to add
support for new Streams API methods.