Cleaning up before updating for MagmaConf