Update Passport to externalize ensure function.