Refactored domain configuration structure.