Remove ClassGetter mixin template and expand it in place, to make code more readable.