Remove routes before re-adding instead of the other way around.