Code to make MEF easier to work with