What about `maybeByName`? I don't think `ensureObject` is that bad though.