Organizing passport functionality into its own file