Can we add a function like `get_pool_pid/3` as we repeat this pattern:

```erlang
  {ok, PoolName} = pool_name(MasterPid, PoolType, Target),
  case PoolName of