Replace with `if/else` statements. Switch cases aren't as well optimized in v8.