This was originally just removing cmd_buffer_ray_query_globals but then I noticed bunch of other leftovers.
cmd_buffer_ray_query_globals