A sub-panel would be allowed, as far as I can tell, since it does not contain the service disconnecting means (230.70(A)(2))& is not one of the prohibited bathrooms in 240.24(E).
Evidently, people are inherently safer when they are in a non-residential type setting.
Few things are harder to put up with than the annoyance of a good example.