Replace prototype functions with static constants. This was vestigial from Java implementation, where we weren't sure if they were really going to be constants. And (imo) functions looked a little cleaner at the call site. But this is unlikely to change now, and constants are more typical.