Abstract the nonce action generation to be better about DRY