Use switch case dispatch for transducer function

Simplify transducer dispatch now that it is a function.