ACCUMULO-2527 Compiler warning cleanup.

For internal use of deprecations, where applicable, new tickets with TODOs were placed in the comments to mark the
necessity to fix the code. To ease deprecation suppression, some code was lifted into a single method to reduce impact.