Refactor and reorganize sl_list.