Cleanup duplicate code in USE_GITHUB
PR:\ 221816
Reviewed by\: lifanov (mentor), matthew (mentor), ..., ...
Approved by\: lifanov (mentor), matthew (mentor), ..., ...
Differential Revision\: https://reviews.freebsd.org/DXXXXX
While adding GitLab into the USE_GITHUB code base, I noticed a lot of
duplicate code and decided to clean it up a bit.
Originally I intended to simply add USE_GITLAB into the USE_GITHUB
code base, because of the mostly similar bits it will use, but after
seeing how much this will reduce the readability, I decided to remove
it and create its own section. This is just leftover improvements for
the USE_GITHUB code. It should not change any functionality.