I am not sure I understand what you need to get around.

IMO you have two buildings that share a common wall.

But if the AHJ does not see it that way there is 230.2(B)(1).


Bob Badger
Construction & Maintenance Electrician
Massachusetts