Took EnergyChunkDistributor.updatePositions from an original cyclomatic complexity of 15 to 9.