chore($resource): refactor confusing case statement