git_hosting_providers: Refactor constructors (#26919)

This PR refactors the constructors for the various Git hosting providers
to facilitate adding support for more self-hosted variants.

Release Notes:

- N/A
45606abfdbMarshall Bowers committed on 3/17/2025, 1:46:58 PM· committed by GitHubparent8ba6ce4
5 files changedLine totals unavailable