Moving GPIO settings out of the class