Definitely don't. Nanoman told you one reason. Here's another.
As far as IRS is concerned, OP would be creating "churn" unnecessarily.
By January 2018, it was well known that 2018 taxes would be changed. It was known most tax brackets would see their tax drop by 3%. So if someone could take a tax deduction in 2017, and then pay income tax on that same amount in 2018, they would be 3% richer -- or in OP's case, $600 richer on $20,000. There aren't many opportunities to do that in the tax code, but by golly, State tax prepayment, deduction, refund, declaration is one of them. I'm not saying OP planned this in 2018...
... but it looks like intentional churning for that purpose. Especially now that the 2017 taxes are settled.
I stick by my earlier advice: Don't take the $20,000 as a deduction in 2017, and don't declare it as income in 2018 (i.e. exclude that amount from the "state tax refund paid" section on your 2018 1040). You did not benefit from the deduction, so there is no question you do not need to pay tax on the $20,000 of the refund.
How exactly you claim that appears to be complicated because your overall state payments were made in 2 years (man, I'll score a mental note never to do that.) If you already have a tax accountant, let him figure it out. IRS does not penalize you for mistakes made by your preparer.