Rework RefactorWindow.