Refactored the way settings are merged, so that environment concretions overwrite the generic settings.