Allow extract text feature to be controlled by env var