Remove legacy code from example.