Cleanup visual scene code