Moving passport setup into a separate lib.