Yes, that's fine. The answer lies in your question: sharing the expertise. I don't find that they are sharing expertise. They're coming in to do the work and leave with the work.
There is a difference between coming in to help solve the problem and create a solution that works in-house, and creating an overreliance on your expertise without adding to the in-house expertise that we need.