Can't we just reuse `handler` here?