Refactoring adding token to url

DRY-ing up adding Github Token to URLs