What is the rhetorical device that modifies a famous phrase, similar to antithesis?

According to Wikipedia:

An antithesis must always contain two ideas within one statement

A similar effect (parallelism emphasizing opposition of ideas) can be created in which the first element is implied by some famous phrase that is so well known that it cannot be mistaken. What is the name of this rhetorical device?

I'm also interested in famous examples (which may not exist because once the variant became famous, the effect would be lessened).

Some examples of this device might be:

  • "the land of the free and the home of the slaves"
  • "baby it's code outside"
  • "I am the way, the truth and the life. No one comes to the Sewer except through me."
  • "Some men just want to watch the world bloom"

Solution 1:

I think there are a few words that could be used, depending on how the sentence is changed.

A parody, which as defined by Oxford Dictionary is, "imitation of the style of a particular writer, artist, or genre with deliberate exaggeration for comic effect." Though, in this case, it's not necessarily for comedic effect.

or "purposeful catachresis." Dictionary.com defines it as "misuse or strained use of words, as in a mixed metaphor, occurring either in error or for rhetorical effect." Your examples, of course, are more of the latter.