Factor Out Common Terms In Weaving