Remove dead code.
Drop last window. Create filler segment before last N island, if needed.