Rename module_sm to module_statemachine