Refactor is_a? conditionals with case
Reindent case statement