It's not exactly removing a constant for a string. The old code triggered an oberservable event, so the name of that event was a constant.  The new code just logs the message directly.  This code is pretty close to calling log.info(...). These could be made constants, but I think this branch is probably not the place to do so.