issue #4221 Refactor constant for cocostudio