Factor out bit of logic that removes SSL-specific args from a kwargs dict