Externalizing tokenizer constructor