Move the extensions context codes into the public API