Use Classes API instead, Heroes classes are in slots `heroes:primary`, `heroes:secondary` and `heroes:race`.