Cleans up configuration.