Procrustes was a violent villain from Greek mythology who had a sadistic habit of offering hapless victims a bed that he claimed could fit all - proceeding to stretch those who were too small for the bed and

Theseus killing Procrustes

beheading those who were too large.

The murderous madman continued this reign of terror until the Greek hero Theseus defeated him and killed him in the same manner he had killed his victims (which, while brutal by our standards, was seen as fitting punishment to the ancient world).