Make swap_lines public.