Refactor list/file to use ABC iter.