[cbe] Combine methods by using if rather than singleton dispatch.

This simplifies some code.