We had 130 lines long function, and we're trying to reduce its size so it's easier to follow the code.