Actually why not return the object here like

return {
update: func ...
}