Move Pool class inside NHP where it should be.