Purge the last remnants of the old TLS api

Closes #3273