How to manage patches in composer when they're merged into the module? I'm building a Lightning BLT project and recently the deploy:build failed because the features module merged a patch composer.json was set to apply.

Is there a way to indicate to composer that the patch is already applied and to skip it?

Edit

Is there a way for composer to know programmatically, perhaps from the module code itself, that the patch has been applied?
Run your deploy build locally and if a patch fails during composer up and you see that it has already been integrated into the module, then delete the patch from composer.json.