When we repeat patterns of behavior that clearly do not fit the situation, it’s a good bet a stand-in from our past is at play.