Refactor GitHub url matching to a static function on the GitHubResolver.