I know, I have the same feeling (in the sense that something isn't as clean and simple as it should be), but I couldn't find a way to simplify things further. Maybe we could have a chat over skype. I could walk you through the code and explain the intention, maybe we can find a better way to express the constraints.