Make protocols part of the API.