Small refactoring in collection##create