* Factor some chain-specific logic into Chain.py.
* Drop the policy and magic tables.