Remove onPageSchemasRegistration and addToAdminLinks hook handling code

By accident was also removed.