*Note to Republicans: but it does work for your side.
Some interesting number crunching:
This was about US Senators, not State Senators, but it may be applicable at all levels. The further an incumbent Senator is to the right of the median voter in their state, the worse s/he does when up for re-election. But Senators to the left of the median suffer no such problem.