Move middleware out of Vagrantfile