The courts have already ruled that trying to tax Federal retirement but not State of Oregon retirees is illegal. 

I have to define each year on my income tax forms how much of my military retirement is before the Legislature tried to screw Federal retirees to benefit State of Oregon retirees so I don't pay too much money.

I wouldn't bet a lot of money on your 'solution' if I were you!