Move `cleanup_runtime_config_instance` out of TestDaemon