Removes duplication between tool and toggletool