Refactor app.production() behavior

The app.production() behavior was not consistent with the
protos.production() method.