Passport reference moved to a require method instead of a passed function parameter for more modularity.