Refactoring on decoder and ALU