Remove replacement logic

It was breaking the uniqueness check. Fixes #113.