MixedClassRewriter generic implementation