Moves action helpers to state module definition.