Please refactor this method, it'll decrease CodeClimate score a lot :) (Try to avoid method with more than 5 lines)