Refactor out overlays to a separate method