Remove Jetpack menu page

I recently moved my WordPress plugin marketplace to a new domain; Extendd.com. I’m in the process of cleaning up client/users dashboards in the admin area, and had to remove a few menu items that we’re not necessary for the subscriber role.

Since subscribers can’t do anything on the Jetpack page, why should it be there? Here is the snippet I put in my core plugin file to remove Jetpack menu page.

if ( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
	remove_menu_page( 'jetpack' );
}

Just add that into a function that gets called on admin_menu really late like so:

function ap_remove_jetpack_page( ) {
	if ( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
		remove_menu_page( 'jetpack' );
	}
}
add_action( 'admin_menu', 'ap_remove_jetpack_page', 999 );