Extracting criteria fetch in a model