apply extract method until readable code emerges