This `d` can be factored out to `P().then(`