Refactor RoleMapper#byname