Replace IN.* in a cleaner way.