Refactored common functionality into OrcaMDF.Framework