Extracting command to restart SM to another method.