repo: (cleanup) Use _is_system() rather than inlining it

No reason to duplicate the code.