# Options dedicated file

If we want, we can also encapsulate the <mark style="color:blue;">`ValidationPipe`</mark> options in a dedicated file. So, let's create the file <mark style="color:purple;">common</mark>/<mark style="color:purple;">util</mark>/<mark style="color:purple;">common.constants</mark> and relocate the options here.

```typescript
export const VALIDATION_PIPE_OPTIONS: ValidationPipeOptions = {
  whitelist: true,
  forbidNonWhitelisted: true,
  transform: true,
  transformOptions: {
    enableImplicitConversion: true,
  },
};
```

And finally, pass them to the <mark style="color:blue;">`ValidationPipe`</mark> instantiation.

```typescript
new ValidationPipe(VALIDATION_PIPE_OPTIONS)
```

<mark style="color:green;">**Commit**</mark> - Encapsulating options in dedicated file
