[common]cleanup avl and related code