Removing unreferenced code