Get rid of the State monad in the Vectorizer module