Remove duplicates from library root

Closes #708
They happen because Extension can have multiple resolvers and we shouldn't remove those.