Wesfarmers was one of the best performers across the ASX 200 by midday after UBS upgraded its rating on the conglomerate.