This section applies where—
To the extent that any covenant of the tenancy confers any rights against the third party with respect to the relevant function, then for the purposes of the transmission of the benefit of the covenant in accordance with this Act it shall be treated as if it were—
To the extent that any covenant of the tenancy confers any rights exercisable by the third party with respect to the relevant function, then for the purposes mentioned in subsection (4), it shall be treated as if it were—
The purposes mentioned in subsection (3) are—
In relation to the release of the landlord from any covenant which is to be treated as a landlord covenant by virtue of subsection (3), section 8 shall apply as if any reference to the tenant were a reference to the third party.