A better way to prevent ng use in dev mode.