Convert 'extract' to SMTFunction