Factor out `get_prediction_queryset`

This will be used by the TideWindows view, so factor it out into
helpers.