Use patterns to remove some duplicate instructions.