Cleanup legacy config.