extract constants in piper.js