Extract out the stager and dea pool code