refactor calls to `NoMorePhotosAvailableError`