refactoring tools#create logic into tool model