BOLT: Move graphics query function to graphics.cpp

Rearchitecture some other stuff