Simplify internal of join.
Update duplication specifier semantics and divide it into another writer.