Move rendered object out to own class