Removes duplicate if block