Remove unnecessary bindEnvironmentForWrite