Abstract the shared override rules across all configs to a common file - import it into the configs. Ensure there are no downstream errors with importing files. Maybe use a bundler to ensure it creates config files with no imports?