Ported `ajv new class` forward.