Refactoring Tokenizer::simplifyAttribute