You could do this instead:
```
style = utils.get_style(ax.get_xlabel())
```