simplify basis.Token#attach & basis.Token#detach methods