message: chore(cli-repl): remove duplicate code
  This basically 1:1 duplicates the functionality in
  [shell-internal-state.ts#L168-L172](https://github.com/mongodb-js/mongosh/blob/5093dc50a1528e1b5fde11ff16f18625beec2953/packages/shell-api/src/shell-internal-state.ts#L168-L172).
diff: /* eslint no-console: 0 */
  import { CliServiceProvider, NodeOptions, CliOptions } from '@mongosh/service-provider-server';
  -import { getShellApiType, ShellInternalState } from '@mongosh/shell-api';
  +import { ShellInternalState } from '@mongosh/shell-api';
  import { ShellEvaluator, ShellResult } from '@mongosh/shell-evaluator';
  import formatOutput, { formatError } from './format-output';
  import { LineByLineInput } from './line-by-line-input';
  @@ -208,17 +208,6 @@ class CliRepl {
  });
  this.internalState.setCtx(this.repl.context);
  - Object.defineProperty(this.repl.context, 'db', {
  - set: (newDb) => {
  - if (getShellApiType(newDb) !== 'Database') {
  - const warn = new MongoshWarning('Cannot reassign \'db\' to non-Database type');
  - console.log(warn);
  - return;
  - }
  - this.internalState.setDbFunc(newDb);
  - },
  - get: () => (this.internalState.currentDb)
  - });
  }
  async toggleTelemetry(enabled: boolean): Promise<string> {
  