List next item

Splits `list_next_item` into two simpler functions.)

See #246