Replace 'switch' with strategy.