Remove sprintf calls from mock generator.