Move metainfo update out of reset_data().