Reimplement expit using its own kernel