I agree, X or Y => Z is the most interesting variant.
How about [MODCOMP] Multiple Yields Consumed by Aymerick?
I tested his modcomp in my unpublished "Livestock" mini-mod with practically the same goods that you are interesting to do. Some screens from "Livestock" are available in this tread.