Environmental management in animal agriculture