Reduce code size by using a second switch statement to avoid extra calls to SelectAto...