Refactor Token.config