Simplify the modifyProxyFactory() method.