extract method and reduce else if block complexity