How to Hide Easy Schema - Structured Data & Rich Snippets Admin Menus

function plt_hide_easy_schema_structured_data_rich_snippets_menus() {
	//Hide the "Easy Schema" menu.
	remove_menu_page('easy-schema-options-menu');
	//Hide the "Easy Schema → Easy Schema" menu.
	remove_submenu_page('easy-schema-options-menu', 'easy-schema-options-menu');
	//Hide the "Easy Schema → Upgrade" menu.
	remove_submenu_page('easy-schema-options-menu', 'easy-schema-options-menu-pricing');
}

add_action('admin_menu', 'plt_hide_easy_schema_structured_data_rich_snippets_menus', 1000000000);

Where do I put this code?