Reduce grasshopper script size to Prevent Rhino Crash

Hi Everyone.
I’m currently working on a residential tower with facade generating script.
These residential towers regularly have 30+ floors in duplication, and I know they are not looking as exciting as a concert hall. Yet it is a tool for the design process.
It basically included windows, overhang windows, and balcony as the main components of the facade. Each of the components is base on a line on the floor plan.
I am having trouble with simplifying the script and rhino always crash during the series and bake process.

Please help

Thank you all for the support

James Fan
Unity (66944) RhinoAutosave.3dm (497.6 KB) (934.9 KB)