move summing of adjustments into own method

Codeclimate complained about it