What's the differences between these two ways of getting AuthorizationManagers?

Hi. I notice that in replication_auth.cpp there’s a getGlobalAuthorizationManager(), but many codes call AuthorizationManager::get(opCtx->getServiceContext()).

The two AuthorizationManagers that they get are same, right ? Maybe the former is shorter and better ?