Refactor: Context with class and self; ClassCommand using context; DefinedClass is a BaseObject