Simplify init_xxx_class().