Cleaned up resource pool construction.