Remove duplication in BitmaskScope