Moves passport logic to a separate file.