How to Hide the "Administrator Z" Admin Menu

function plt_hide_administrator_z_menus() {
	//Hide the "Tools → Administrator Z" menu.
	remove_submenu_page('tools.php', 'administrator-z');
}

add_action('admin_menu', 'plt_hide_administrator_z_menus', 1000);

Where do I put this code?