Remove unnecessary config keys.