Removes useless configs.