code: func (r *Registry) RemoveReference(obj mo.Reference, field *[]types.ManagedObjectReference, ref types.ManagedObjectReference) {
  	r.WithLock(obj, func() {
  		RemoveReference(field, ref)
  	})
  }
docs: // RemoveReference removes ref from the given field.