"communications data" has the same meaning as in Chapter 2 of Part 1 of the Regulation of Investigatory Powers Act 2000 (c. 23);
"communications provider" means a person who provides a postal service or a telecommunications service;
"legal proceedings", "postal service" and "telecommunications service" each has the same meaning as in that Act;
and any reference in this Part to the prevention or detection of crime shall be construed as if contained in Chapter 2 of Part 1 of that Act.
(2) References in this Part, in relation to any code of practice, agreement or direction, to the retention by a communications provider of any communications data include references to the retention of any data obtained by that provider before the time when the code was issued, the agreement made or the direction given, and to data already held by that provider at that time.