Refactor tokenization. Implement support for custom Grantables.