Move acquire_cred functions into a helper