phlgitu_ref: add is_fq() for clarity

Wrap the test for a 'refs/' prefix in a predicate for clarity and to
reduce repetition.

Test Plan:
Add doctests
$ ./precommit.sh