I just chuck them in, but my compost bins get pretty hot usually as they’re all lined with sheets of phenolic foam,( like they insulate houses with, the thick stuff, probably 4”), but I have had a rat in there too but usually just in winter but then I either keep turning the compost as they don’t like that or I put a bait box in, baited until no more bait disappears