Black hole phase transitions via Bragg-Williams