Also: can this stuff be moved to the `ClassMetadataInfo` API? I don't really like the fact that it sticks around in the CMF, since the CMF deals with other problems (reflection-related)