Refactored metadata's contents dict to be a getter/setter