extracting creation of weldProxyClass to a constant