This method here https://github.com/magento/magento2/blob/master/app/code/Magento/Tax/Helper/Data.php#L937 should be refactored to work without the registry.