Removed unused MetadataFactory class

Only the disconnected version is used for code generation.