Extract duplicate arithmetic decoder to own class