Clean up dead code and centralize light update operations