Can't you refactor this like :

```objj
var bezelHeadColor = [[CPTheme defaultTheme] valueForAttributeWithName:_isSheet ? @"bezel-head-color" : @"bezel-head-color"
                                                                                                     inState:[_parentView themeState]
                                                                                                    forClass:_CPStandardWindowView];
[_gradientView setBackgroundColor:bezelHeadColor];
```