Replace literal numbers with usages of the ProtocolConstants class.