There are weird and wonderful theoretic extractors in the literature, but in practice people end up using some form of generic hash algorithm. You either write your own or use a recognised form. The implementation language can be anything that can do the following:-
Writing your own usually comprises some form of vector multiplication. So either a Toeplitz matrix, or just a rectangular matrix of random bits/integers. You then apply the modulus depending on whether you're trying to output bits or octets. So using matrix $M$ on an input entropy vector $x$ gives $\operatorname{Ext}(x) = M \cdot x \mod n$, where $n$ would be the modulus, say 2, $2^8$ or a prime in some cases. The ID Quantique random number generators use the random bit wise mod 2 method.
The standard forms can be either cryptographic or non cryptographic hashes. SHA*, HMAC, CRC*, Pearson, etc. The USB format OneRNG uses CRC16 and I'm partial to Pearson.
It doesn't really matter as the typical application of a randomness extractor means that the overall system state is not recoverable.
Although... You mention extracting from a sub group of $Z_N^*$. It is unusual to extract from an algorithm, as what you will have is a pseudo random generator. If this is really the case, a cryptographic hash would be needed as state discovery would be mathematically possible. Forwards and backwards security would be compromised otherwise. However, I've never seen a formal randomness extractor and an algorithmic state mutator together in one construction.
An alternative is to stick with von Neumann (vN) if inversion is not possible due to some algebraic property of $Z$. You then have to decorrelate $x$, create independent samples and only then apply vN. The most common decorrelation method is dropping higher bits from $x$ until autocorrelation levels become acceptable. Only you know your $Z$'s behaviour, so lower bits may have to be dropped instead. There is also FIR filtering across sequential $x_i$ values. XOR of sequential $x_i$ values can also act as an ersatz FIR filter. If inversion is possible, simple vN will still be insecure for cryptography though.