GEOMESA-508 Factoring Out Common Code from STIdxStrategy and QueryPlanner

* Factored out four duplicated functions from STIdxStrategy and QueryPlanner into a trait.