Green’s Dictionary of Slang

factory n.1

[resemblance to the architecture of 19C factories + the work performed by the inmates of sense 1]

1. (Aus.) a prison.

[Aus]A. Marjoribanks Travels in New South Wales 225: There is a large penitentiary erected for the female convicts, called the female factory at Parramatta.
[Aus]Cornwall Chron. (Launceston, Tas.) 18 Aug. 5/4: Her majesty’s Female Factory in Hobart, where events befal of the most tragic and appalling nature.

2. (UK Und.) a police station, esp. a large, Victorian-era station in the London Metropolitan area.

[UK]F.W. Carew Autobiog. of a Gipsey 426: A stranger of foreign aspect whom a plain-clothes D. from ‘the Factory’ would most assuredly have catalogued as ‘suspicious’.
[UK]F.D. Sharpe Sharpe of the Flying Squad 330: factory (the) : The police-station.
[UK]B. Hill Boss of Britain’s Underworld 55: Down at the factory the Commissioner of police was going mad.
[UK]G.F. Newman You Flash Bastard 25: Although Sneed and DC Gordon had both started in CID together, the latter having followed him to Divisional HQ from their previous factory, that was the only parallel in their careers.
[UK]‘Derek Raymond’ He Died with His Eyes Open 12: You’d better call the Factory and I’ll have his property sent over.
[UK]J. Morton Lowspeak.