Extract email creation and classification utils to shared/classification