When I can, I route the shift cables to the opposite side and then make the cables cross back under the down tube. That causes the cable housing to curve away from the head tube to prevent the problem. Unfortunately, it doesn't work with all bikes because the cables sometimes rub the bottom of the down tube.