Fix "unnecessary 'use strict'" when creating classes within class methods.