Remove hard mongoose dependency