Remove redundancy mongo collection iteration