You should simply define a PPipeline instead:

```nimrod
type
  PPipeline = ref object ...
```