Split console::gfx into a new library