Merge "Move context and device creation out of the spec file."