Refactor Constants.PrivateRepoCredentials
Restore old Credentials API as Obsolete