Removes duplicated routes.