Remove config items when they are empty