Remove Eventmachine dependency

Any way to make this DRY and have some common set of options, then merge in the unique options for each case?