Factor out overlay.