Reduce nesting level in AbstractCurl class