Refactored metadata editor.