Some static variables would be nice instead for "objectPolicy", "oldCore" and "updateOrCreate".