Re-arch Magpie to be scheduler/resource manager agnostic