Custom Dimension - Maintain same Ids across different environment & siteIds

Hello!
We have many sites on-boarded on our matomo instance, on both matomo.dev, matomo.alpha and matomo.prod. This means customDimension ID 1 needs to refer to the same parameter across all environments. Since action and visit share the same id pool from 1 to a 100, the order of creation matters which means one inconsistent (manual) entry can mess it all up. Even more so - we are trying to set common custom dimension across different sites
1/ Is there a better way to approach this programmatically
2/ Is there a way to delete custom dimension specifically for a site id in case of a manual entry error / or to create (vs. generate/unlocking slots)
3/ Alternatively is there a way to rely on custom dimension name instead of ID?
What would be the recommendation for our use case? Thank you