eligible insourcing expenses means— (A) eligible expenses paid or incurred by the taxpayer in connection with the elimination of any business unit of the taxpayer (or of any member of any expanded affiliated group in which the taxpayer is also a member) located outside the United States, and (B) eligible expenses paid or incurred by the taxpayer in connection with the establishment of any business unit of the taxpayer (or of any member of any expanded affiliated group in which the taxpayer is also a member) located within the United States, if such establishment constitutes the relocation of the business unit so eliminated. For purposes of the preceding sentence, a relocation shall not be treated as failing to occur merely because such elimination occurs in a different taxable year than such establishment. (2) Eligible expenses The term eligible expenses means— (A) any amount for which a deduction is allowed to the taxpayer under section 162, and (B) permit and license fees, lease brokerage fees, equipment installation costs, and, to the extent provided by the Secretary, other similar expenses. Such term does not include any compensation which is paid or incurred in connection with severance from employment and, to the extent provided by the Secretary, any similar amount. (3) Business unit The term business unit means— (A) any trade or business, and (B) any line of business, or functional unit, which is part of any trade or business. (4) Expanded affiliated group The term expanded affiliated group means an affiliated group as defined in section 1504(a), determined without regard to section 1504(b)(3) and by substituting more than 50 percent for at least 80 percent each place it appears in section 1504(a). A partnership or any other entity (other than a corporation) shall be treated as a member of an expanded affiliated group if such entity is controlled (within the meaning of section 954(d)(3)) by members of such group (including any entity treated as a member of such group by reason of this paragraph). (5)