remove redundant branch
remove redundant parens
split up big function
factor duplicate branches together
factor duplicate branches together