Cleans up multi-line masks. Removes un-needed sets

The string continuation was fairly confusing even when you're aware it was there. Instead, this change makes long and/or deeply nested masks use multi-line strings.

Also, I removed the creation of sets. It's not really needed.