What plumbing code is Mass under?

The UPC requires it go into the sewer.

Doesn't seem very environmentally friendly.