[refactoring] Cleaned up Renderer.cpp