Removed duplication from WhereWriter::writeNotExists and WhereWriter::writeExists