Remove mongo function from core