Use component APIs for the classes generator