Move target automation handling from export_plain_scxml_models to generate_plain_scxml_models_and_timers or unify the two functions