Convert old style class attributes