Simplify decoder implementation.