Let's say you are writing an improved reviews extension for Magento 2. Due to the vast differences to the core
magento/module-review module, it makes sense to create an entirely new extension, while completely disabling the core module.
A requirement is that an admin, via the admin interface or command line, is not able to enable the core module again. It should be completely disabled while the custom module is enabled.
How might one do this via a module setup?
What I've tried/considered
Simply disabling the core module. Although easy enough to do, it's unclear how to ensure enabling the module again is not possible.
Magento 1 had a concept of setting arbitrary modules as active/inactive via
config.xmlin your custom extension -- however, I'm not seeing a means of doing this in Magento 2.