Make token_to_type static