When should companies obtain a tax legal opinion for transactions or restructuring