Don't allow to drop repo if it is published.
Refactoring: use CollectionFactory instead of manual collection creation.