Avoid explicit case expression