Avoid some magic values and suppress warnings for the rest.