Refactor to use common templated Pool.
Refactor to use common templated Pool.

uwsampa/grappa,alexfrolov/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa,alexfrolov/grappa,buaasun/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,buaasun/grappa,alexfrolov/grappa,alexfrolov/grappa,uwsampa/grappa,uwsampa/grappa,uwsampa/grappa