I'm not sure why this is necessary: the function space is cached on the mesh anyway and will hang around as long as the mesh is live.