Default Completely start again

I have installed the google mod and the xsposed framework. And updated to the latest firmware. And installed the the cwm recovery. What is the best way to remove all the above and start from a stock firmware??