pool: Move the pool utility to its own directory in src