Class proxy rewrite