tweak remove_list_item

Signed-off-by: William Rockwood <wrockwood@tadl.org>