Factor out check for unchanged line