Rules Vs Boundaries

I once heard a metaphor that compared relationship "rules" to a band-aid. There's something that gives you negative feelings, and instead of getting to the root cause of why the negative feelings are happening, a rule is created in an attempt to block those feelings from surfacing.