Split pool class into two files