The definition of "controller" in Article 4(1)(7) of the UK GDPR has effect subject to—
subsection (2),
section 209, and
section 210.
For the purposes of the UK GDPR, where personal data is processed only—
for purposes for which it is required by an enactment to be processed, and
by means by which it is required by an enactment to be processed,
the person on whom the obligation to process the data is imposed by the enactment (or, if different, one of the enactments) is the controller.