Adds after_initialize_callbacks hook.