Factorize vaomanager in its own file.