Remove duplicates from library root

Closes #708