Factor light fitting rendering out into a function.