Can you explain why you extract this line to a separated function?