Fix deprecated messages sent multiple times

Calling LOG.deprecated('...') multiple times with the same log
message was causing the message to be logged multiple times. The
message should only have been logged once.

Change-Id: Ieab0bf2656761759966cf16f1de05bcb41cd1be5
Closes-Bug: #1266812
Merge "Fix deprecated messages sent multiple times"