Restructured TS map computation

As close to final as it could get today.
Please give this magic number a name, e.g. put on the line before:
```python
BRACKET_FLUX_UP_FACTOR = 10
```