Remove use of JDispatcher for removal in Joomla 4.0

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31699