Remove duplicates from library root

Closes #708
I am thinking that a comment is needed, regardless of the actual solution chosen?