Refactored the configuration implementation.