chore(cockpit): avoid deprecated classes