Thanks to @Jupeyy for the idea. Replacing graphics_threaded_null.h with a null backend makes code maintenance and memory cleanup easier.