Add _item_write method and remove duplicate code