Replace deprecated create window options