Reduce code in JniSignatureBuilder.