Split of mongoose.c that is too big