MAINT: Combine leverage calculations.
MAINT: Combine leverage calculations.

Instead of having two leverage functions, whose differences were the
parameter names, add a `calc_leverage` function, with the calling code
determining whether it is gross or net by the type of exposure passed in.

bartosh/zipline,humdings/zipline,Scapogo/zipline,grundgruen/zipline,jimgoo/zipline-fork,nborggren/zipline,dmitriz/zipline,otmaneJai/Zipline,alphaBenj/zipline,jimgoo/zipline-fork,ChinaQuants/zipline,wilsonkichoi/zipline,quantopian/zipline,magne-max/zipline-ja,magne-max/zipline-ja,otmaneJai/Zipline,nborggren/zipline,YuepengGuo/zipline,dmitriz/zipline,umuzungu/zipline,florentchandelier/zipline,ChinaQuants/zipline,umuzungu/zipline,Scapogo/zipline,enigmampc/catalyst,wilsonkichoi/zipline,alphaBenj/zipline,enigmampc/catalyst,bartosh/zipline,quantopian/zipline,humdings/zipline,YuepengGuo/zipline,grundgruen/zipline,florentchandelier/zipline