Use 'TConstants' instead of magic numbers.

We can use `TConstants` instead of by #1914 fixed.