local: Move constant to Library class

Related to #833
Merge branch 'release/v0.19.x' into develop