What factors cause them to go bad? I'm assuming heat is one of them but can't think of much else.

Contracting a soap acquisition disorder sounds a bit worrying now.