Remove unused 'wim' argument to read_metadata_resource()