buildContentStateCondition looks like it is always invoked with booleans pulled out of a FilterConstraints, so it could be changed to just take a FilterConstraints argument instead of the 3 booleans.