a_gravel_cleanup_routine_for_complex_borders