Seems like it ought to be pretty straightforward. Catalytic oxidizers and CO detectors are both in rather widespread use.
Right. Maybe you could start with a catalytic converter to destroy the NO and O
3. Then add O
2 and pass over another catalyst to oxidize the CO and H
2CO (and any CH
4 if it actually exists). Finally remove the CO
2 and you're left with a mixture of O
2, the inert gases in the Martian atmosphere, and a little additional H
2O vapor. Store that for use whenever additional diluent is needed.
Since the diluent is usually reused indefinitely, the only reason to store a lot of it is to maintain normal habitat pressure during a leak emergency. Otherwise you'd have to maintain it with pure O
2, which would either create a serious fire hazard (if total pressure is maintained) or a serious risk of the bends (if only the O
2 partial pressure is maintained).