Could be a local function inside canonical if we prefer that style. In the `master` version of this patch there are no local functions; the `2.10.x` version has them only because we can't directly make `value` or `isCompleted` final.