The total number of lines is too long. Just like with normal code, a method should in most cases not be more than 15 lines of code.