Refactor and extract editor_ui_static_additem