private static IEnumerable <Thing> ButcherProducts(Thing thing, float efficiency, IRecipeProductWorker worker) { var corpse = thing as Corpse; if (corpse != null) { return(ButcherProducts(corpse, efficiency, worker)); } else { return(thing.ButcherProducts(null, efficiency)); } }