split the big consume method into little ones (less complex) #codeclimate