Support auto-configuration of classes that define `__new__`.