Extracted code that runs archives.nypl.org/terms