Removing targets from a program