Remove use of T in favor of compare.