Changes NonPrimeFieldElement to have three parameters.