Not so much Somerville code - but- a requirement imposed by the state - if I read the article correctly.
I happen to think that a triple decker ADU behind a triple decker sounds perfectly fine. I would prefer a 8, 10, or 12 unit brick building instead for that size, but, if that's what the land...