Clarify de-duplication and optimize/merge

This contribution is based on the feedback given in issue 4254 and issue 4255 .