Split checkout modes to separate files.