Fix shared example + remove dead code.