Transform metadata