Optimised on-farm nutrient recycling