Localize deprecation logger instance variable to single method