Refactored tool creation into an enum