Removed getVM call from toVolumes.