What you have is "legal" in Arizona. (according to hj)
And it "will" work other places. UPC code doesn't like it, but if in fact that has been inspected by "your" local inspector and he liked it, you're done.
I can't do that here in Washington State, but that's a long way from your home. My answers are based on what a code book would say. There are plenty of in the field responses to that that you could get by with, but if you ask me what will work "anywhere", then that's the answer I'm giving. I don't find that it makes very much sense if I'm only giving a solution that a city inspector may like if the the state inspections don't allow it.