Move visit_list to lib/