This is probably a good candidate for `collectFirst` as well.