Exactly.
The only reasonable thing for the government to do about out-of-wedlock births is reduce the financial incentive. Efforts in England have shown that even the least educated and least moral-minded have sufficient rationality to calculate, “I’m going to lose money on this.”