Separate runtime from statechart.