Replace arbitrary value by a static const variable