Reduce thread allocation by replacing `return <const>` with `return_none`,
`return_unit` or `return_nil`.