Call getDefaultValueConstantName just once