Fix magic number warnings because Sonar told me to.