Extract path building logic into a Renderer class