A change to secular council-administered rather than church-administered public services followed the establishment of poor law unions and Sanitary Districts and was completed with the founding, in 1889, of the Middlesex County Council and Staines Rural District from 1896. In 1930 on the rural district's abolition, Shepperton became part of the Sunbury-on-Thames Urban District until its dissolution into a reduced and reconfigured county of Surrey in 1965. Three districts of the historic county thus did not become part of Greater London: Staines Urban District also joined Surrey and Potters Bar Urban District joined Hertfordshire.