Refactor dl_list remove functions.