Move functionality from Puppeteer to MotionProcessor.