extractWeights: Extract weights from a portfolio run via optimize.portfolio or optimize.portfolio.rebalancing
Description
This function will dispatch to the appropriate class handler based on the
input class of the optimize.portfolio or optimize.portfolio.rebalancing output object