This sort of legal workaround can work (see Uber) though.
Uber avoided medallions.
I guess that proves law is not code!
It depends on how much money you have to grease the wheels.