Baking Vertex Color

Given a static mesh and a material that shows the vertex color as emissive property,
what is the easiest way to bake the vertex color/emissive from the material to a texture?