Refactor #update.