@adrienthebo The major problem with putting this in the metadata file is that you're separating things in a way I don't think works well.  You certainly could put it in the metadata file, but I don't see a clear benefit of that over putting it inline.  In particular, with it inline you can query and introspect the objects, but with it in the metadata file, you can't necessarily.