This `if` expression is somewhat convoluted.  Actually, the only difference between the two branches is the face attached to the overlay.  Please think about simplifying it.