Make constant() a public method.