improved how min cat attributes is used

make "noAttributesRemoved" a constant, it is used 3 places at least