Factor Passport class into separate file.