Just a note JD, in the UK there are no such things as local codes, the whole of the United Kingdom has 1 standard that is strictly adhered to (BS 7671) 18th edition, 19th edition due 2022 with amendments and safety changes
The reason for no local codes like other countries… its safer ! Having different ways to wire different things just creates confusion for installers and users, 1 standard means a qualified electrician can work anywhere in the world that adheres to British standards and users from anywhere in the UK know what to expect and how to operate it