Move CopyCollection function into mongo namespace