here `apply_metadata` comes after `call_hooks_deferred_to_application_initialization`, but in `initialize_app_defaults` we do the opposite:

<pre>
apply_metadata
call_hooks_deferred_to_application_initialization
</pre>

I think it's been that way since @adrienthebo fixed an issue recently?