DEV: Remove FlagQuery class and old code (PR #8064)

We can remove the FlagQuery class after merging https://github.com/discourse/discourse-assign/pull/47.

GitHub

You’ve signed the CLA, romanrizzi. Thank you! This pull request is ready for review.

Merge at will, this looks good to me.