Code cleanup for list_append.