I didn't have this originally, but could you use the `local_data_key!` macro and use SNAKE_CAPS? Like:

~~~rust
local_data_key!(ERROR_CALLBACK: &'static ErrorCallback)
local_data_key!(MONITOR_CALLBACK: &'static MonitorCallback)
~~~