Use .locate since usePrivateRepository may be pretty far down.