How to Hide Popup Box Admin Menus

function plt_hide_ays_popup_box_menus() {
	//Hide "Popup Box".
	remove_menu_page('ays-pb');
	//Hide "Popup Box → Popups".
	remove_submenu_page('ays-pb', 'ays-pb');
	//Hide "Popup Box → Categories".
	remove_submenu_page('ays-pb', 'ays-pb-categories');
	//Hide "Popup Box → Custom Fields".
	remove_submenu_page('ays-pb', 'ays-pb-attributes');
	//Hide "Popup Box → Analytics".
	remove_submenu_page('ays-pb', 'ays-pb-reports');
	//Hide "Popup Box → Submissions".
	remove_submenu_page('ays-pb', 'ays-pb-subscribes');
	//Hide "Popup Box → Export/Import".
	remove_submenu_page('ays-pb', 'ays-pb-export-import');
	//Hide "Popup Box → General Settings".
	remove_submenu_page('ays-pb', 'ays-pb-settings');
	//Hide "Popup Box → How to use".
	remove_submenu_page('ays-pb', 'ays-pb-how-to-use');
	//Hide "Popup Box → Our Products".
	remove_submenu_page('ays-pb', 'ays-pb-featured-plugins');
	//Hide "Popup Box → PRO Features".
	remove_submenu_page('ays-pb', 'ays-pb-pb-features');
}

add_action('admin_menu', 'plt_hide_ays_popup_box_menus', 121);

Where do I put this code?