It can be a bit of a grind, but the trick is to keep defeating Cogs to build up your gag track. Once you've got enough laff (your health), you can take on bigger challenges like the Factory and Mints, which speed up the process considerably.