remove duplicated code, clean up one comment
Merge pull request #101 from NYULibraries/chore/remove-duplicated-code

remove duplicated code, clean up one comment