List of items to refactor * Remove any coupling between query_range table function implementation and standard ppl metrics. * Refactor according to this PR with push down optimizations: https://github.com/opensearch-project/sql/pull/1091