Unify the `name_to_id`, `named`, and `find_by_name` methods into a single `find_by_name_or_id` method that has consistent behavior in how names are normalized.
Unify the `name_to_id`, `named`, and `find_by_name` methods into a single `find_by_name_or_id` method that has consistent behavior in how names are normalized.