How does the sentence end?

A lesson was given by Mary to Jessica on cooking carrot oil due to
Mary being an expert in the kitchen.