```\nuint256 refundAmount = \_arcAmount.sub(total\_cost);\nif (refundAmount > 0) {\n  arcadeumCoin.safeTransferFrom(address(this), \_recipient, arcadeumCoinID, refundAmount, "");\n}\n\n// Mint tokens to recipient\nfactoryManager.batchMint(\_recipient, \_ids, amounts\_to\_mint, "");\n```\n