[#703 Wizard] Refactor to the metadata format (see also #866)