Fixing issues with handling route duplications and route removals