Replace several deprecated functions
allow non_uppercase_statics in generated code