Extract Minty. Also remove test related stuff for now.