Separating stitcher code