Is this function called by anything except `update`?  If not, you could just pull this one line inside `update`.