Converting some magic constants into static constants