Simplify slotdefs-for-slots-with-class by using existing function.