Pull vision code into a class.