maybe quick return is better here instead of long if block.
something like
```
return summary unless @config.do_registration

sumarry = ...
```