Convert statics to constants
Fix `non_uppercase_statics` warnings of private constants.
Migrate to new `cfg` attribute syntax`
Remove redundant attribute