LightManager refactoring.