Refactoring pact_helper loading.