nit: end brace should have same indentation as the `return`:

```python
return {
    'subject': d['subject'],
}
```