CDAP-557 Refactor AbstractAppFabricHandler

https://builds.cask.co/browse/CDAP-DUT133-2