Which preposition to use with castrating

in Occurrences 2%

2. 'Whilst attending a patient on a farm on September 5 last my attention was called to a cart-horse, five years of age, that had been castrated in the standing position by a travelling castrator about ten days previously.

before Occurrences 1%

The results of the experiments and observations can be summed up as follows: if the male individual is castrated before puberty, that is, before the advent of the sexual life, secondary sex qualities do not develop.

by Occurrences 1%

The response to the revolution in the cell-republic of the castrate by the other endocrines, the thyroid, the pituitary, and the adrenals, determines which it is to be.

Which preposition to use with  castrating