Metadata factory