Migrate metadata to a store-level key/value store; update defaultJson in each collection to use it.
delete metadata value if nil passed as the value