Fix duplicated code
Share extracted dex-tools