A dwelling ceases to be social housing if—
the provider holds a leasehold interest in the dwelling, and
the leasehold interest determines (whether by effluxion of time or in any other way).
But subsection (1) does not apply if, immediately before the leasehold interest determines, the lessor was—
an associate or subsidiary of the provider, or
a registered provider.