refactoring for vagrant