Maybe it can be done that way. My interpretation is that the outlawing of prostitution is an old law from long ago when we didn't have the precision for regulation and safety, and it hasn't been revisited yet. Perhaps due to people's personal ethical beliefs.