Convert statics to constants

Due to breaking change in the Rust compiler