Ed Helms is branching out from “The Office,” setting up an untitled Civil War feature with Warner Bros., with castmate Steve Carell producing through his Warner-based Carousel banner.

Helms will star in the project, which is based on a pitch from Helms and scripting partner Jake Fleisher. The duo will write the script with details of the story staying under wraps.

Helms would play a civil war re-enacter, someone who is obsessive about historical precision – stitch count in a coat, buttons from the period, proper speech, etc. He and three other guys (two fellow re-enacters and an African-American professor of history who is protesting the event) are accidentally transported back in time and awaken in the actual civil war. Once there, they have find there way home without altering history or permanently breaking America in half.

Carousel partners Vance Degeneres and Charles Hartsock are also producing.

Helms recently wrapped “The Hangover” for director Todd Phillips at Warner Bros. Helms and Fleisher previously collaborated on “A Whole New Hugh,” in development with Judd Apatow.

Helms is repped by CAA and managed by Principato-Young.