In general
For purposes of applying the limitations of subsections (b) and (c)—
(A)#
all defined benefit plans (whether or not terminated) of an employer are to be treated as one defined benefit plan, and
(B)#
all defined contribution plans (whether or not terminated) of an employer are to be treated as one defined contribution plan.