Refactoring on APL. Moved out and made static utilities from ProxyConfiguration, so that can be called in different context