Now, the ModuleTool does not merge any items. Instead, it just provides the visual connections and interface. It also provides a very important function:
connectedItems( list of graphics items, list of handles, list of handles )
The above function searches the list of graphics items and fills in the two other lists provided in the argument (so those are outputs). The two lists will contain the set of nodes that are replaced and the set of new nodes that replace the old ones. Other tools use this information when generating the model. So, the responsibility of modular deconstruction has been shifted to the other tools instead of a single tool.
For example, the getRates function in StoichiometryTool does the following: