Remove unused code from proxies since cglib and java.lang.Proxy support was removed.