getClassObject is used in unregisterFactory to determine what the current factory is so that we can unregister it, but the only caller is already tracking it, so pass it in rather than recomputing it. getClassObject is an odd API I am trying to eliminate, and this is really my entire goal of this patch series. Differential Revision: https://phabricator.services.mozilla.com/D320609