Factor out?
```
Object rawContent = input.getRawContent();
if (rawContent ins...
```