Refactor base configuration.