I find the trick is to refactor to a different spelling, and then refactor again to correct spelling and capitalisation.