Re-factoring things to pave the way for supporting querying for poly models.  Starting with moving `validate_query_is_possible` into the `SelectCommand` so that we can tell whether or not we're querying for a poly model.