Incorporate PopupMenuAPI into CommonUtils.