splits Lightsquare setup code into methods