Remove unused convert_entities function