Split tools.hpp into separate headers in the tools subdirectory.