Add an AttributeDiscarder discarding an attribute if it matches the passed in value