Refactoring SheetWindow