Remove hack out of RenderManager class.