Introduce extractILists helper function