Rewrite a farm.