Do not append items to the end after removing the field items.
Required fields validate the first item only. When we move the removed item to the last item, the first item does not get filled out when entering a value and the validation fails. This merge request removes the code that appends the last item to the end.