refactor invalid affix pair specification