Refactors passport code into staticAssetsRouter