1. A non-transitory device-readable storage medium storing instructions, the instructions when executed causing one or more processors to perform a process comprising: identify one or more reuse candidates in an executable graphical state diagram model, each reuse candidate comprising a subchart of the graphical state diagram model; obtain an atomic subchart, the atomic subchart being a canonicalized representation of the subcharts of the one or more reuse candidates, and comprising restrictions applied to a structure or semantics of the atomic subchart that allow the atomic subchart to be used without relying on parameters outside of the atomic subchart in the graphical state diagram model when the atomic subchart is placed in the graphical state diagram model, and replace in the graphical state diagram model, at least one of the reuse candidates with the atomic subchart; the replacing comprising; generating a link between the at least one of one or more reuse candidates and the atomic subchart, the link configured to parameterize the atomic subchart.