Is there a reason to have `resolve-name` be one function and/or not just inline it into `resolve-once`?