Remove defunct migration code.
Fix token repository tests.