Split out NemoAction construction code to avoid leaking memory during
nemo_action_new().