To openly draw the audience's notice, from inside a story, to how unlikely, mismatched, or worn-out one of its plot elements or scenes is.
Rather than pretend the villain's sudden amnesia made sense, the writers lampshaded it by having a character ask how that was even possible.