The "Old Factory" in SpongeBob: The Yellow Avenger? It's the "Old Chum" Factory
You likely mean the "Old Chum" factory, where Patrick Star "works" making "old chum." It's a recurring joke about his job and SpongeBob's loyalty—more a chaotic gag than a real factory.