Refactoring AttrMasked