I am working on abstracting my queries with squirrel package. I need to find a reusable and scalable approach before I will move on with next endpoints. At the moment I have two endpoints – one that returns FeatureCollection and one that streams new-line delimited GeoJSON. The second one will require extra abstraction for streaming functionality.