By masking, all I really meant was "selective editing". Your approach of selecting certain colors is a perfectly appropriate form of selective editing.

Sorry for that confusion