Remove duplicate code of assetic token parser