Split a method with high level of internal complexity