Dynamic routing cleanup