Factor out color matrix generation, move color matrix into layer renderer