Move global defs inside AttributeLogger mixin class.