Move allocation of spark pools into initCapability