Extract opcodes into separate module