Migrating hook_init in D8