Replace explicit queries by models.