scratch one's own itch

Etymology
From

Verb

 * 1)  To do something out of motivation to solve a personal problem; to take matters into one's own hands.
 * 2)  to masturbate
 * 1)  to masturbate
 * 1)  to masturbate