deduplicate tool creation code in Tools