Remove instructions that are no longer applicable.