Unify HEADER_InsertItem[A/W] into one function.