- avoid using classmethod if the class argument is not used, use staticmethod instead - avoid testing for is_mask three times if one is enough Former-commit-id: 1116e3096cd5210a0596d1f3938989016e0f3b6c
Former-commit-id: 8f317cb13c17ef25a86b25a0c24390e04cd4db82
Former-commit-id: beadb49b75ea79a3c0f95df589f64a8274419c5b