Refactor coreos runtime