Barium is used to remove oxygen from cathode ray tubes and vacuum tubes . The dominating application of elemental barium is as a scavenger or â getterâ removing the last traces of oxygen and other gases in electronic vacuum tubes such as television cathode ray tubes .