Window breaking and moving refactoring.