might be good to decompose the contents of these if/elif blocks as private member functions, and then do something like:

```python
if foo:
    return self._something_cool()
elif bar:
    return self._something_else()
```